package org.code.mallspringboot.service;

import org.code.mallspringboot.pojo.UmsMemberReceiveAddress;

import java.util.List;

/**
 *
 */
public interface UmsMemberReceiveAddressService{

    /**
        根据 memberId 查询
     * @param memberId
     * @return
     */
    List<UmsMemberReceiveAddress> selectByMemberId(int memberId);

    /**
        删除
     * @param id
     * @return
     */
    int delete(int id);

    /**
        添加
     * @param umsMemberReceiveAddress
     * @return
     */
    int add(UmsMemberReceiveAddress umsMemberReceiveAddress);

    /**
        编辑回显
     * @param id
     * @return
     */
    UmsMemberReceiveAddress fetchAddressDetail(int id);

    /**
        修改
     * @param umsMemberReceiveAddress
     * @return
     */
    int updateAddress(UmsMemberReceiveAddress umsMemberReceiveAddress);
}
